package com.jobcn.dic;

import java.util.HashMap;
import java.util.Map;

/**
 * 爬虫需要使用的状态字典
 * Created by winson on 17-6-22.
 */
public class SpiderDic {

    //认证类型 0：无 1：企业 2：个人
    public final static int CERT_TYPE_NULL = 0;
    public final static int CERT_TYPE_COMPANY = 1;
    public final static int CERT_TYPE_PEASON = 2;

    //任务执行的状态：-1：异常 0：等待 1：执行中 2：完成
    public final static int STATUS_EXCEPTION = -1;
    public final static int STATUS_WAIT = 0;
    public final static int STATUS_PROCESSING = 1;
    public final static int STATUS_STOP = 2;
    public final static int STATUS_FINISH = 3;
    public final static int STATUS_CLOSE = 4;

    //爬取信息的类型： 1：服务信息 2：商家信息 3：商家地图
    public final static int SPIDER_TYPE_SER_INFO = 1;
    public final static int SPIDER_TYPE_MER_INFO = 2;
    public final static int SPIDER_TYPE_MER_MAP = 3;
    public final static int SPIDER_TYPE_MER_CREDIT = 4;

    //触发类型： 1：定时器触发 2：手动触发
    public final static int TRIGGER_TIMMER = 1;
    public final static int TRIGGER_MANUAL = 2;

    //任务类型： 0：爬取 1：更新
    public final static int TASK_SPIDER = 0;
    public final static int TASK_UPDATE = 1;

    public final static int SPIDER_SOURCE_58 = 1;

    //地区的字典
    public static Map<String, Map<String, String>> ADDRESS_CODE = new HashMap<>();

}
